using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Collections.Generic;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using FutureOpen.Web.Pages;
using FutureOpen.Core;
using FutureOpen.Core.func;
using FutureOpen.Core.func.db;
using System.Text;

public partial class controls_OrgHot : System.Web.UI.UserControl
{
    private int orgid;
    private PageBase pbase;
    MyOrg ObjMyOrg = new MyOrg();
    MyUsr ObjMyUsr = new MyUsr();
    MyOrgusr ObjMyOrgusr = new MyOrgusr();
       
    protected void Page_Load(object sender, EventArgs e)
    {
        pbase = (PageBase)this.Page;
        pbase.PageInit();

        if (pbase.orgid > 0)
        {
            this.orgid = pbase.orgid;
        }     

        if (!Page.IsPostBack)
        {
            LoadHotInfos();
        }        
    }
    public void LoadHotInfos()
    {
        MyArt myart = new MyArt();
        IList<Art> arts = myart.GetHotArtsByOrg(5, orgid);
        this.DataList1.DataSource = arts;
        this.DataList1.DataBind();
    }
    public String GetArtUrl(object obj, object obj2)
    {
        return pbase.GetArtUrl((string)obj, (Int32)obj2, this.orgid);
    }
    public string GetTime(object time)
    {
        return ((DateTime)time).ToLongTimeString();
    }
}
